﻿
namespace DBA.Data.ADO
{
    class OdbcDAL: DataAccessLibrary
    {
        /// <summary>
        /// 子类的构造函数，调用父类的构造函数
        /// </summary>
        public OdbcDAL()
        {
        }

        /// <summary>
        /// 子类的构造函数，调用父类的构造函数
        /// </summary>
        /// <param name="connectionString">连接字符串</param>
        /// <param name="providerName">数据库驱动的名称。System.Data.SqlClient、System.Data.OleDb 、System.Data.Odbc、System.Data.OracleClient等</param>
        public OdbcDAL(string connectionString, string providerName)
            : base(connectionString, providerName)
        {
        }

        /// <summary>
        /// 设置存储过程的参数名称的前缀。Odbc的返回“?”
        /// </summary>
        /// <returns></returns>
        public override string ParameterPrefix()
        {
            return "?";
        }

    }
}
